import java.util.Scanner;

public class YoukeTest {
    public static void main(String[] args) {
        while (true) {
            Youke y = new Youke();
            Scanner input = new Scanner(System.in);
            System.out.println("请输入游客的姓名：");
            y.name = input.next();
            System.out.println("请输入年龄");
            y.age = input.nextInt();
            if (y.age <= 14) {
                y.price = 0;
                y.show();
            } else if (y.age > 14 && y.age < 60) {
                y.price = 20;
                y.show();
            } else {
                y.price = 10;
                y.show();
            }

        }
    }
}
